<div class="row">
    <div class="col-md-3">
    </div>
    <div class="col-md-6">
        <div class="form">

            <?php $form = $this->beginWidget('CActiveForm', array(
                'id' => 'transaction-form',
                'enableAjaxValidation' => false,
            )); ?>

            <p class="note">Fields with <span class="required">*</span> are required.</p>

            <?php echo $form->errorSummary($model); ?>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'trans_status'); ?>
                <?php echo $form->dropDownList($model, 'trans_status',Transaction::model()->getListTranStatus(), array('class' => 'form-control')); ?>

                <?php echo $form->error($model, 'trans_status'); ?>
            </div>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'trans_type'); ?>
                <?php echo $form->dropDownList($model, 'trans_type',Transaction::model()->getListTranType(), array('class' => 'form-control')); ?>
                <?php echo $form->error($model, 'trans_type'); ?>
            </div>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'buyer_id'); ?>
                <?php echo $form->dropDownList($model, 'buyer_id',Transaction::model()->getUser(), array( 'class' => 'form-control','disabled'=>'true')); ?>
                <?php echo $form->error($model, 'buyer_id'); ?>
            </div>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'ideality_id'); ?>
                <?php echo $form->dropDownList($model,'ideality_id',Transaction::model()->getIdeality(), array('class' => 'form-control','disabled'=>'true')); ?>
                <?php echo $form->error($model, 'ideality_id'); ?>
            </div>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'create_datetime'); ?>
                <?php echo $form->textField($model, 'create_datetime', array('size' => 50, 'class' => 'form-control','disabled'=>'true')); ?>
                <?php echo $form->error($model, 'create_datetime'); ?>
            </div>

            <div class="row buttons">
                <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
            </div>

            <?php $this->endWidget(); ?>

        </div>
        <!-- form -->
        <div class='col-md-3'></div>
    </div>